FROM golang:1.9-stretch 
# AS build-server

COPY . /usr/local/go/src/wuyang.realtime
WORKDIR /usr/local/go/src/wuyang.realtime
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
RUN go get \
    && go build

EXPOSE 9999
CMD ./wuyang.realtime 9999